﻿Imports System
Imports System.Data
Imports System.Configuration
Imports System.Linq
Imports System.Web
Imports System.Web.Security
Imports System.Web.UI
Imports System.Web.UI.HtmlControls
Imports System.Web.UI.WebControls
Imports System.Web.UI.WebControls.WebParts
Imports System.Xml.Linq

 _


Public Class Compras

   Private id As Integer
   Private idValor As String
    Private cantidad As Integer
   Private precio_total As Double
   Private precioAccion As Double
   Private fecha As DateTime
   
   
   Public Sub New()
   End Sub 'New
   
   
    Public Sub New(ByVal attrs() As String)

        Me.id = Integer.Parse(attrs(0))
        Me.idValor = attrs(2)
        Me.cantidad = attrs(3)
        Me.fecha = DateTime.Parse(attrs(4))
        Me.precio_total = Double.Parse(attrs(5))
        Me.precioAccion = Double.Parse(attrs(6))
    End Sub 'New
   
   
   Public Function getIdC() As Integer
      Return Me.id
   End Function 'getIdC
   
   Public Function getid_accion() As String
      Return Me.idValor
   End Function 'getid_accion
   
   Public Function getNumAcciones() As Long
      Return Me.cantidad
   End Function 'getNumAcciones
   
   Public Function getImporteOperacion() As Double
      Return Me.precio_total
   End Function 'getImporteOperacion
   
   Public Function getPrecioAccion() As Double
      Return Me.precioAccion
   End Function 'getPrecioAccion
   
   Public Function getFechaOperacion() As DateTime
      Return Me.fecha
   End Function 'getFechaOperacion
End Class 'Compras
